package cn.javasm.dao.impl;

import cn.javasm.dao.UserDao;
import cn.javasm.entity.User;
import cn.javasm.enums.PrivEnum;
import cn.javasm.privanno.PrivAnno;
import org.springframework.stereotype.Repository;

/**
 * @version: 0.1
 */
@Repository
public class UserDaoImpl implements UserDao {
    @Override
    public void registUser(User user) {
        System.out.println("注册用户成功" + user);
    }

    @Override
    public void updateUser(User user) {
        System.out.println("更新用户成功" + user);
    }

    @Override
    public void deleteUserById(int id) {
        System.out.println("删除用户成功" + id);
    }

    @Override
    public User queryUserById(int id) {
        if (id == 1)
            return new User(1,"孙悟空","花果山");
        return null;
    }
}
